#ifndef SINGLETON_H
#define SINGLETON_H

#include <QObject>

template<typename T> class Singleton :  public QObject
{
  public:
    static T& instance()
    {
        static T theSingleInstance;  // assumes T has a protected default constructor
        return theSingleInstance;
    }
};


#endif // SINGLETON_H
